import { post } from "@/utils/baseApiMethod";
import request from "@/utils/request";

// 服务器返回文件流，前端下载文件，需要设置responseType: "blob"
export function getDownload(params) {
  return request("/ud/download", {
    method: "GET",
    params,
    responseType: "blob",
  });
}

export function uploadFile(data) {
  return post("/ud/upload", data);
}
